import 'package:flutter/material.dart';
import 'package:flutter_navigator/OSNavigator/OSNavigator.dart';

class AMRegistPage extends StatefulWidget {
  const AMRegistPage({Key? key}) : super(key: key);

  @override
  _AMRegistPageState createState() => _AMRegistPageState();
}

class _AMRegistPageState extends State<AMRegistPage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text("注册页面"),
      ),
      body: Container(
        color: Colors.yellow,
        child: Center(
          child: Column(
            children: [
              SizedBox(
                height: 30,
              ),
              MaterialButton(
                  color: Colors.pinkAccent,
                  child: Text("注册"),
                  onPressed: () {
                    OSNavigator.getInstance()
                        .onJumpTo(RouteStatus.home, args: {"isLogin": true});
                  }),
            ],
          ),
        ),
      ),
    );
  }
}
